﻿<Page x:Class="AgileToDo.PageMain"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="PageMain" Loaded="Window_Loaded">

    <Page.Resources>
        <Storyboard  x:Key="sbImgShow">
            <DoubleAnimation
                    Storyboard.TargetProperty="Opacity" 
                    From="0.3" To="1" Duration="0:0:0.15"
                    />
        </Storyboard>
        <Storyboard x:Key="sbImgHide">
            <DoubleAnimation
                    Storyboard.TargetProperty="Opacity" 
                    From="1" To="0.3" Duration="0:0:0.15"
                    />
        </Storyboard>
    
    </Page.Resources>
    <Border CornerRadius="5">
        <Canvas>
         

            <Image Width="20" Height="20" Source="image\add.png"  
                   Opacity="0.3" ToolTip="添加待办" 
                   Canvas.Left="194" Canvas.Top="0"  
                   MouseLeftButtonDown="Image_MouseLeftButtonDown_AddToDo">
                <Image.Triggers>
                    <EventTrigger RoutedEvent="Image.MouseEnter">
                        <BeginStoryboard Storyboard="{ StaticResource sbImgShow}"/>
                    </EventTrigger>
                    <EventTrigger RoutedEvent="Image.MouseLeave">
                        <BeginStoryboard Storyboard="{ StaticResource sbImgHide}"/>
                    </EventTrigger>
                </Image.Triggers>
            </Image>
            <Image Width="20" Height="20" Source="image\add.png"  
                   ToolTip="添加类别" Opacity="0.3"
                   Canvas.Left="23" Canvas.Top="0" 
                   MouseLeftButtonDown="Image_MouseLeftButtonDown_AddProj">
                <Image.Triggers>
                    <EventTrigger RoutedEvent="Image.MouseEnter">
                        <BeginStoryboard Storyboard="{ StaticResource sbImgShow}"/>
                    </EventTrigger>
                    <EventTrigger RoutedEvent="Image.MouseLeave">
                        <BeginStoryboard Storyboard="{ StaticResource sbImgHide}"/>
                    </EventTrigger>
                </Image.Triggers>
            </Image>
          
            <Grid Margin="20,23,20,20">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="155" />
                    <ColumnDefinition Width="15" />
                    <ColumnDefinition Width="535" />
                </Grid.ColumnDefinitions>
                <ScrollViewer Grid.Column="0"
                              CanContentScroll="True"
                              VerticalScrollBarVisibility="Hidden">
                    <StackPanel Opacity="0.65" x:Name="projectItems"
                                Height="385" Grid.Column="0">

                    </StackPanel>
                </ScrollViewer>
                <ScrollViewer Grid.Column="2" 
                              CanContentScroll="True"
                              VerticalScrollBarVisibility="Hidden">
                    <StackPanel
                        Opacity="0.7" x:Name="toList" 
                            Height="385" >
                    </StackPanel>
                </ScrollViewer>
            </Grid>
            <TextBlock Text="2012 BY MJ.ZHOU" Canvas.Left="620" Canvas.Top="405" 
                       ToolTip="O(∩_∩)O~~"
                       Foreground="#FFC4C4C4" FontStretch="Normal" FontStyle="Italic" />
        </Canvas>
        <!--<Border.Background>
            <ImageBrush ImageSource="/AgileToDo;component/image/volkswagen-GTI-2010-06.jpg" Stretch="UniformToFill" TileMode="None" />
        </Border.Background>-->
    </Border>
</Page>
